<template>
  <div class="custom_button_download">
    <button type="button" @click="buttonClickHandle">
      {{ $t("lang.立即打开") }}
    </button>
  </div>
</template>
<script>
export default {
  name: "downloadButton",
  props: {
    item: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  data() {
    return {};
  },
  methods: {
    buttonClickHandle() {
      this.$parent.$emit("download");
    },
  },
};
</script>
<style lang="less">
@base: 23.44rem;
.custom_button_download {
  background-color: #ce1212;
  color: #fff;
  height: (45 / @base);
  line-height: (16 / @base);
  button {
    border: 0;
    background-color: #ce1212;
    font-size: (14 / @base);
    height: 100%;
  }
}
</style>
